package ooday03;

public abstract class guyuan {
    String name;
    int age;
    double price;

    void updo() {
        System.out.println(age + "岁的" + name + "正在上班打卡");
    }
    void downdo() {
        System.out.println(age + "岁的" + name + "正在上班打卡" + "工资为：" + price);
    }

   abstract void  finwork();
    //    System.out.println(age + "岁的" + name + "正在完成工作" + "工资为：" + price);

    guyuan(String name, int age, double price) {
        this.name = name;
        this.age = age;
        this.price = price;
    }
}

interface  Interr1{
    void book();
}
interface Interr extends Interr1{
  void fainquestion();
  void student();
}
class zongjian extends guyuan implements Interr{

    zongjian(String name,int age,double price){
        super(name, age, price);
    }
    public void book(){
        System.out.println("去赎回问哈退");
         }

    @Override
    public void fainquestion() {
        System.out.println("完成工作");
    }

    @Override
    public void student() {
        System.out.println("员工培训");
    }

    @Override
    void finwork() {
        System.out.println("玩成功够挂科大家好减肥就是看开了哈");
    }

}//————————————————————————————————————
class jiangshi extends guyuan implements Interr{

    jiangshi(String name,int age,double price){
        super(name, age, price);
    }
    public void book(){
        System.out.println("去赎回问哈退");
    }

    @Override
    public void fainquestion() {
        System.out.println("完成工作");
    }

    @Override
    public void student() {
        System.out.println("员工培训");
    }

    @Override
    void finwork() {
        System.out.println("玩成功够挂科大家好减肥就是看开了哈");
    }
}//————————————————————————————————————————————
class xiangmu extends guyuan implements Interr1{
    xiangmu(String name,int age,double price){
        super(name,age,price);
    }
    public void book() {
        System.out.println("完成工作");
    }
    void finwork() {
        System.out.println("玩成功够挂科大家好减肥就是看开了哈");
    }
}
class classboss extends guyuan {
    classboss(String name,int age,double price){
        super(name, age, price);
    }

    @Override
    void finwork() {
        System.out.println("我都会感觉靠撒谎的感觉 ");
    }
}

